﻿using System;
using System.Collections.Generic;
using System.Text;
using Validate.Library;

namespace Authority.Model
{
    /// <summary>
    /// 部门信息修改
    /// </summary>
    public class DepartmentModifyRequest
    {
        /// <summary>
        /// 唯一标识符
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "唯一标识符")]
        public string gCode
        {
            get; set;
        }

        /// <summary>
        /// 部门名称
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 25, Description = "部门名称")]
        public string sName
        {
            get; set;
        }


        /// <summary>
        /// 负责人
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 20, Description = "负责人")]
        public string sLeader
        {
            get; set;
        }

        /// <summary>
        /// 联系电话
        /// </summary>
        [Validate(ValidateType.MatchingRegex | ValidateType.MaxLength, Regex = ValidateRegex.TelphoneOrMobile, MaxLength = 100, Description = "联系电话")]
        public string sPhone
        {
            get; set;
        }

        /// <summary>
        /// 邮箱
        /// </summary>
        [Validate(ValidateType.MatchingRegex | ValidateType.MaxLength, Regex = ValidateRegex.Email, MaxLength = 100, Description = "邮箱")]
        public string sEmail
        {
            get; set;
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string sContent
        {
            get; set;
        }

        /// <summary>
        /// 状态 0不启用 1启用
        /// </summary>
        public bool bIsEnabled
        {
            get; set;
        }
    }
}
